home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
tools
/
sharp
/
sxwork1i.lzh
/
SXWORK1.XDF
/
INST.BAT
Wrap
DOS Batch File
|
1994-02-20
|
30KB
|
841 lines
echo off||cls
rem Workroom SX-68K ver1.0 インストーラ Copyright 1993 SHARP
if not exist B:\ETC\TOOL.X goto NTC
tool 5 0||break on
B:\ETC\tool 1 A:||if not exitcode 254 goto NTC
B:\ETC\tool 12 A: XCシステム#1||if exitcode 1 goto NTC
B:\ETC\tool 12 B: Workroom_Applicati.on||if exitcode 1 goto NTC
echo 21H
組み込みプログラムを起動します.しばらくお待ちください
for %%D in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do B:\ETC\tool 1 %%D:||if exitcode 249 set dir=%%D||goto BGN
:NTC
echo H
注意!!
echo Hこのプログラムは、フロッピーディスクのドライブ0にXCシステムディスク1、
echo ドライブ1にWorkroom SX-68Kアプリケーションディスクを入れて起動しないと正常に動作しません
echo また、ハードディスクユーザーの方も、フロッピーディスクから起動し直してください
if not exist B:\ETC\TOOL.X pause||goto END
B:\ETC\tool 6 H
リセットします.
pause||B:\ETC\tool 7
rem サブルーチン
:MSG1
echo H||for %%N in (1 2 3) do echo
echo
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃%m1%63H
┃
:J10
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛||echo
set m1=||goto %rt2%
:MSG2
echo H||echo ||echo
echo
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃%m1%63H
┃
echo ┃%m2%63H
┃
set m2=||goto J10
:MSGM
set m1=%nm%ディスクを作成中です.しばらくお待ちください
:J11
set nm=||set rt2=R10||goto MSG1
:R10
echo 3Hコピー中は、キーを押さないでください63H
┃
tool 6 3H63H
┃H
goto %rt%
:MSGC
set m1=コピー中です.しばらくお待ちください
goto J11
:ERR1
set m1=ドライブ%dv%: にディスクが入っていません
:ESC1
set m1=
%m1%||set rt2=J12||goto MSG1
:J12
set nm=
echo 3Hエスケープキーを押してください63H
┃
tool 6 3H 溿(復帰)63H
┃
:L10
tool 2||if not exitcode 27 goto L10
set rt2=%es%
:CLR
tool 6 H||for %%N in (1 2 3 4 5 6 7 8) do echo
goto %rt2%
:ERR2
tool 3 [%dv%:||tool 3 %dv%:
set m1=ドライブ%dv%: は%nm%ではありません
set m2=ディスクを入れ替えてください
:ESC2
set m1=
%m1%||set m2=
%m2%||set rt2=J12||goto MSG2
:INIT
set rt2=||set es=||set dr=||set dr2=||set dv=||set vr=||set sc=||set dt=
for %%N in (0 1 2 3 4 5 6) do set x%%N=||set y%%N=||set n%%N=
set wr=||set wr2=||set dw=||set dw2=||set sh=||set sh2=||set ds=||set ds2=
set xc=||set xc2=||set dx=||set dx2=||set sm=||set db=||set db2=
goto %rt%
:MN1
echo 3HSX開発キットをインストールするデバイスを指定してください
┃
tool 6 3H (選択)
(確定)
溿
(終了)63H
┃
set n1=Hフロッピーディスク
set n2=Hハードディスク
set n3=H終了
echo H
┏━━━━━━━━━┓
echo H┃%r1%%n1%
┃
echo H┃%r2%%n2%
┃
echo H┃%r3%%n3%
┃
echo H┗━━━━━━━━━┛
set n=19||set rt2=L11
:CLRN
for %%N in (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) do echo ||if %n% == %%N set n=||goto %rt2%
set n=||goto %rt2%
:L11
tool 2
if exitcode 6 goto DWN1
if exitcode 1 goto UP1
if exitcode 27 goto END
if not exitcode 13 goto L11
if %r1% == 42m goto FDD
if %r2% == 42m goto HDD
if %r3% == 42m goto END
goto L11
:DWN1
if %r1% == 42m set r1=m||set r2=42m||echo %n1%
%n2%||goto L11
if %r2% == 42m set r2=m||set r3=42m||echo %n2%
%n3%||goto L11
set r3=m||set r1=42m||echo %n3%
%n1%||goto L11
:UP1
if %r1% == 42m set r1=m||set r3=42m||echo %n1%
%n3%||goto L11
if %r2% == 42m set r2=m||set r1=42m||echo %n2%
%n1%||goto L11
set r3=m||set r2=42m||echo %n3%
%n2%||goto L11
:MN2
set y0=7||set y1=8||set y2=9||set y3=10||set y4=11||set y5=12||set y6=13
set x1=8||set x2=10||set n=14
echo H
┏━━━━━┓
echo H┃0H┃
:J13
set n1=%y1%;%x2%HドライブA:
set n2=%y2%;%x2%HドライブB:
set n3=%y3%;%x2%HドライブC:
set n4=%y4%;%x2%HドライブD:
set n5=%y5%;%x2%Hその他
echo %r1%%n1%
echo %y2%;%x1%H
┃%r2%%n2%
┃
echo %y3%;%x1%H
┃%r3%%n3%
┃
echo %y4%;%x1%H┃%r4%%n4%
┃
echo %y5%;%x1%H┃%r5%%n5%
┃
echo %y6%;%x1%H┗━━━━━┛
set rt2=R11||goto CLRN
:R11
tool 6 3H
(選択)
(確定)
溿
(前に戻る)63H
┃
:L12
tool 2
if exitcode 6 goto DWN2
if exitcode 1 goto UP2
if exitcode 27 goto %es%
if not exitcode 13 goto L12
if %r1% == 42m set dr=A||goto J14
if %r2% == 42m set dr=B||goto J14
if %r3% == 42m set dr=C||goto J14
if %r4% == 42m set dr=D||goto J14
set m1=ドライブ名を入力してください (E-Z):
set rt2=L13||goto MSG1
:L13
tool 6 39H||tool 5 1
tool 8||if exitcode 27 tool 5 0||set rt2=L12||goto CLR
tool 5 0||for %%D in (A B C D) do if %dir% == %%D goto L13
set dr=%dir%||echo %y5%;%x2%H
ドライブ%dir%:
:J14
for %%N in (0 1 2 3 4 5 6) do set x%%N=||set y%%N=||set n%%N=
goto %rt%
:DWN2
if %r1% == 42m set r1=m||set r2=42m||echo %n1%
%n2%||goto L12
if %r2% == 42m set r2=m||set r3=42m||echo %n2%
%n3%||goto L12
if %r3% == 42m set r3=m||set r4=42m||echo %n3%
%n4%||goto L12
if %r4% == 42m set r4=m||set r5=42m||echo %n4%
%n5%||goto L12
set r5=m||set r1=42m||echo %n5%
%n1%||goto L12
:UP2
if %r1% == 42m set r1=m||set r5=42m||echo %n1%
%n5%||goto L12
if %r2% == 42m set r2=m||set r1=42m||echo %n2%
%n1%||goto L12
if %r3% == 42m set r3=m||set r2=42m||echo %n3%
%n2%||goto L12
if %r4% == 42m set r4=m||set r3=42m||echo %n4%
%n3%||goto L12
set r5=m||set r4=42m||echo %n5%
%n4%||goto L12
:MN3
set y0=9||set y1=10||set y2=11||set y3=12||set y4=13||set y5=14||set y6=15
set x1=12||set x2=14||set x3=24
:J15
echo %y0%;%x1%H
┏━━━━━┓
echo %y1%;%x1%H┃%y1%;%x3%H┃
goto J13
:MN4
set y0=11||set y1=12||set y2=13||set y3=14||set y4=15||set y5=16||set y6=17
set x1=16||set x2=18||set x3=28||set n=10||goto J15
:FDC
tool 1 %dr%:||if exitcode 254 goto %rt%
set m1=そのドライブはフロッピーディスクではありません
goto ESC1
:HDC
echo 3Hハードディスクを検査しています63H
┃
tool 6 3H63H
┃
for %%N in (246 247 248) do tool 1 %dr%:||if exitcode %%N goto %rt%
set m1=そのドライブはハードディスクではありません
goto ESC1
:INS
set m1=%nm%をドライブ%sc%: に入れてください
:RDY
set rt2=RDY1||goto MSG1
:RDY1
echo 3H準備はよろしいですか [Y/N]63H
┃
tool 6 3H(続行)
(終了)
溿
(前に戻る)63H
┃
:L14
tool 6 30H||tool 5 1
tool 8||if exitcode 27 tool 5 0||set nm=||set rt2=%es%||goto CLR
tool 5 0
if %dir% == Y goto %rt%
if %dir% == N set nm=||goto END
goto L14
:CPY
tool 11 %dt%:
if exitcode 1 set m1=ドライブ%dt%: にディスクが入っていません||goto ESC1
if exitcode 2 set m1=ドライブ%dt%: の準備ができていません||goto ESC1
if exitcode 3 set m1=ドライブ%dt%: のディスクにプロテクトシールが貼られています||goto ESC1
tool 10 %dt%: 1221||if not exitcode 1 goto J16
set m1=ドライブ%dt%: のディスクの中身は消去されます
set rt2=R12||goto MSG1
:R12
echo 3Hよろしいですか [Y/N]63H
┃
tool 6 3H(続行)
(中止)63H
┃
:L15
tool 6 24H||tool 5 1
tool 8||tool 5 0
if %dir% == N set nm=||goto %es%
if not %dir% == Y goto L15
:J16
tool 3 @%sc%:||tool 3 @%dt%:
set rt_=%rt%||set rt=R13||goto MSGM
:R13
diskcopy %sc%: %dt%: < \ETC\YN > NUL||vol /s %dt%:Workroom_%vl%
set vl=||set rt=%rt_%||set rt_=
goto %rt%
:CHK
set nm=Workroom SX-68Kアプリケーションディスク||set vl=Workroom_Applicati.on
:CHK1
tool 11 %dv%:||if exitcode 1 goto ERR1
tool 12 %dv%: %vl%||set vl=||if exitcode 1 goto ERR2
tool 3 @%dv%:||set nm=||goto %rt%
:DRC
tool 6 3H
溿
(前に戻る)63H
┃
:J17
set m1=ディレクトリ名を入力してください
set m2=ディレクトリ名=%dr%:\
set rt2=R14||goto MSG2
:R14
tool 6 22H||tool 5 1
tool 9 %nm%
if exitcode 27 tool 5 0||set nm=||goto %es%
if exitcode 1 tool 5 0||set gets=\||goto SFT
tool 5 0
tool 12 %dr%: %gets%||if not exitcode 1 goto J17
:SFT
set nm=
tool 1 C:||if not exitcode 254 goto J18
tool 1 D:||if not exitcode 254 goto J19
tool 1 E:||if not exitcode 254 goto J20
:J18
if %dr% == C set dr2=A||goto %rt%
if %dr% == D set dr2=B||goto %rt%
if %dr% == E set dr2=C||goto %rt%
if %dr% == F set dr2=D||goto %rt%
if %dr% == G set dr2=E||goto %rt%
if %dr% == H set dr2=F||goto %rt%
if %dr% == I set dr2=G||goto %rt%
if %dr% == J set dr2=H||goto %rt%
if %dr% == K set dr2=I||goto %rt%
if %dr% == L set dr2=J||goto %rt%
if %dr% == M set dr2=K||goto %rt%
if %dr% == N set dr2=L||goto %rt%
if %dr% == O set dr2=M||goto %rt%
if %dr% == P set dr2=N||goto %rt%
if %dr% == Q set dr2=O||goto %rt%
if %dr% == R set dr2=P||goto %rt%
if %dr% == S set dr2=Q||goto %rt%
if %dr% == T set dr2=R||goto %rt%
if %dr% == U set dr2=S||goto %rt%
if %dr% == V set dr2=T||goto %rt%
if %dr% == W set dr2=U||goto %rt%
if %dr% == X set dr2=V||goto %rt%
if %dr% == Y set dr2=W||goto %rt%
if %dr% == Z set dr2=X||goto %rt%
set dr2=A||goto %rt%
:J19
if %dr% == D set dr2=A||goto %rt%
if %dr% == E set dr2=B||goto %rt%
if %dr% == F set dr2=C||goto %rt%
if %dr% == G set dr2=D||goto %rt%
if %dr% == H set dr2=E||goto %rt%
if %dr% == I set dr2=F||goto %rt%
if %dr% == J set dr2=G||goto %rt%
if %dr% == K set dr2=H||goto %rt%
if %dr% == L set dr2=I||goto %rt%
if %dr% == M set dr2=J||goto %rt%
if %dr% == N set dr2=K||goto %rt%
if %dr% == O set dr2=L||goto %rt%
if %dr% == P set dr2=M||goto %rt%
if %dr% == Q set dr2=N||goto %rt%
if %dr% == R set dr2=O||goto %rt%
if %dr% == S set dr2=P||goto %rt%
if %dr% == T set dr2=Q||goto %rt%
if %dr% == U set dr2=R||goto %rt%
if %dr% == V set dr2=S||goto %rt%
if %dr% == W set dr2=T||goto %rt%
if %dr% == X set dr2=U||goto %rt%
if %dr% == Y set dr2=V||goto %rt%
if %dr% == Z set dr2=W||goto %rt%
if %dr% == Z set dr2=X||goto %rt%
set dr2=A||goto %rt%
:J20
if %dr% == E set dr2=A||goto %rt%
if %dr% == F set dr2=B||goto %rt%
if %dr% == G set dr2=C||goto %rt%
if %dr% == H set dr2=D||goto %rt%
if %dr% == I set dr2=E||goto %rt%
if %dr% == J set dr2=F||goto %rt%
if %dr% == K set dr2=G||goto %rt%
if %dr% == L set dr2=H||goto %rt%
if %dr% == M set dr2=I||goto %rt%
if %dr% == N set dr2=J||goto %rt%
if %dr% == O set dr2=K||goto %rt%
if %dr% == P set dr2=L||goto %rt%
if %dr% == Q set dr2=M||goto %rt%
if %dr% == R set dr2=N||goto %rt%
if %dr% == S set dr2=O||goto %rt%
if %dr% == T set dr2=P||goto %rt%
if %dr% == U set dr2=Q||goto %rt%
if %dr% == V set dr2=R||goto %rt%
if %dr% == W set dr2=S||goto %rt%
if %dr% == X set dr2=T||goto %rt%
if %dr% == Y set dr2=U||goto %rt%
if %dr% == Z set dr2=V||goto %rt%
set dr2=A||goto %rt%
:INST
echo 3H%nm%はインストールしてありますか? [Y/N]63H
┃
tool 6 3H(再設定)
(終了)63H
┃
set nm=
:L16
tool 6 %x0%H||tool 5 1
tool 8||tool 5 0
if %dir% == Y goto %rt%
if %dir% == N goto END
goto L16
rem インストールの開始
:BGN
A:\BIN\format %dir%: < B:\ETC\YN > NUL
%dir%:||cd \||TEMP %dir%:
copy B:\ETC\TOOL.X > NUL
tool 3 @A:||tool 3 @B:
copy A:\COMMAND.X > NUL
copy A:\BIN\DISKCOPY.X > NUL
copy A:\BIN\COPYALL.X > NUL
copy A:\SYS\OPMDRV3.X > NUL
copyall A:\SYS\PRNDRV.SYS \SYS > NUL
copy A:\SYS\HISTORY.X \SYS > NUL
copyall A:\HIS > NUL
copyall A:\BIN\ED.* \BIN > NUL
for %%F in (AS LK CV MAKE) do copy A:\BIN\%%F.X \BIN > NUL
copyall B:\ETC > NUL
copy COMMAND.X \ETC > NUL
:TTL
cls
echo
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃
Workroom
SX-68K
ver1.0 インストーラ Copyright 1993 SHARP
┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo H┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃63H┃
echo ┃63H┃
tool 6 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
set r1=42m||set r2=m||set r3=m||goto DVC1
:DVC
set r1=m||set r2=42m||set r3=m
:DVC1
set rt=R15||goto INIT
:R15
tool 3 [A:||tool 3 [B:||goto MN1
rem フロッピーディスクへのインストール
:FDD
set m1=フォーマット済のフロッピーディスクを3枚用意してください
set rt=SRC||set es=DVC1||goto RDY
:SRC
set r1=42m||for %%N in (2 3 4 5) do set r%%N=m
:SRC1
echo 3Hコピー元のドライブを指定してください63H
┃
set rt=R16||set es=FDD||goto MN2
:R16
set rt=R17||set es=SRC1||goto FDC
:R17
set sc=%dr%||set r2=42m||for %%N in (1 3 4 5) do set r%%N=m
:DST
echo 3Hコピー先のドライブを指定してください63H
┃
set n=12||set rt=R18||set es=J21||goto MN3
:R18
set rt=R19||set es=DST||goto FDC
:R19
set dt=%dr%||if not %dr% == %sc% goto FD1
set m1=コピー元と同じドライブは、指定できません
set es=DST||goto ESC1
:J21
if %sc% == A goto SRC
for %%N in (1 2 3 4 5) do set r%%N=m
if %sc% == B set r2=42m||goto SRC1
if %sc% == C set r3=42m||goto SRC1
if %sc% == D set r4=42m||goto SRC1
set r5=42m||goto SRC1
:FD1
tool 3 [%sc%:||tool 3 %sc%:
:FD11
tool 3 [%dt%:||tool 3 %dt%:
:FD12
set m1=コピーを始めます.ドライブ%sc%: にSX-WINDOWシステムディスク、
set m2=ドライブ%dt%: に空きディスクを入れてください
set rt=R20||set es=DST||set rt2=RDY1||goto MSG2
:R20
set dv=%sc%||set nm=SX-WINDOWシステムディスク||set es=FD12
tool 11 %dv%:||if exitcode 1 goto ERR1
tool 12 %dv%: SX・Window_SYSTEM||if not exitcode 1 set vr=2||goto J22
tool 12 %dv%: SX・Window-System||if exitcode 1 goto ERR2
set vr=3
:J22
set nm=起動||set vl=Startup||set rt=R21||set es=FD11||goto CPY
:R21
if %vr% == 2 del %dt%:\HDフォーマット.X > NUL
del /Y %dt%:\SHELL\TITLE.* > NUL
if %vr% == 3 del /Y %dt%:\SHELL\IVM.* > NUL
if %vr% == 2 del %dt%:\SYS\OPMDRV.X > NUL
copy %dt%:\SHELL\SXWIN.X %dt%:\SHELL\SXWDB.X > NUL
if %vr% == 2 goto J23
tool 3 [%sc%:||tool 3 %sc%:
:FD2
set nm=Human68k ver3システムディスク||set rt=R22||set es=FD1||goto INS
:R22
set dv=%sc%||set vl=Human68k_Ver3||set rt=R23||set es=FD2||goto CHK1
:R23
set nm=起動||set rt=R24||goto MSGM
:R24
copyall /T %sc%:\COMMAND.X \ETC > NUL
copyall /T %sc%:\SYS\HISTORY.X \SYS > NUL
tool 13 \ETC\CONFIG.SYS,.SYS,.SYS ||copy tmp.$$$ \ETC\CONFIG.SYS > NUL
tool 13 \ETC\CONFIG.SYS,B:\X68K_M.DIC B:\X68K_S.DIC ,/DB:\X68K.DIC /E
copy tmp.$$$ \ETC\CONFIG.SYS > NUL
tool 13 \ETC\CONFIG.SYS,SCSIDRV.SYS /ID0,FDDEVICE.X
copy tmp.$$$ \ETC\CONFIG.SYS > NUL
tool 13 \ETC\CONFIG.SYS,DEVICE = \SYS\IOCS.X,#DEVICE = \SYS\IOCS.X
copy tmp.$$$ \ETC\CONFIG.SYS > NUL
tool 13 \ETC\CONFIG.SYS,.SYS ,.SYS||copy tmp.$$$ \ETC\CONFIG.SYS > NUL
tool 13 \ETC\AUTOEXEC.BAT,set SM_ED=,set SM_ED=シャーペン.X -Gエディタ.ENV
copy tmp.$$$ \ETC\AUTOEXEC.BAT > NUL
del tmp.$$$ > NUL
:J23
for %%F in (COMMAND.X CONFIG.SYS AUTOEXEC.BAT) do copy \ETC\%%F %dt%:\ > NUL
echo echo off> %dt%:\SX.BAT||echo SXWIN.X>> %dt%:\SX.BAT
copy \ETC\SYSDTOP.SX %dt%:\SHELL > NUL
copyall /T \SYS %dt%:\ > NUL
copyall /T OPMDRV3.X %dt%:\SYS > NUL
copyall \HIS %dt%:\ > NUL
copyall \TOOL.X %dt%:\ETC > NUL
:FD3
tool 3 [%sc%:||tool 3 %sc%:
:FD31
tool 3 [%dt%:||tool 3 %dt%:
:FD32
set m1=起動ディスクを作成しました.続いてドライブ%sc%: にXCシステム
set m2=ディスク2、ドライブ%dt%: に空きディスクを入れてください
set rt=R25||set es=FD1||set rt2=RDY1||goto MSG2
:R25
set dv=%sc%||set nm=XCシステムディスク2||set vl=XCシステム#2||set rt=R26||set es=FD32||goto CHK1
:R26
set nm=ランタイム||set vl=Runtime||set rt=R27||set es=FD31||goto CPY
:R27
del /Y %dt%:\INCLUDE\*.MAC > NUL
del %dt%:\INCLUDE\FDEF.H > NUL
if exist %dt%:\INCLUDE\GPIB.H del %dt%:\INCLUDE\GPIB.H > NUL
del /Y %dt%:\BC > NUL||rd %dt%:\BC
tool 4 %dt%:\SAMPLE||if exitcode 1 del /Y %dt%:\SAMPLE > NUL||rd %dt%:\SAMPLE
tool 4 %dt%:\MUSIC||if exitcode 1 del /Y %dt%:\MUSIC > NUL||rd %dt%:\MUSIC
tool 4 %dt%:\BASIC2||if exitcode 1 del /Y %dt%:\BASIC2 > NUL||rd %dt%:\BASIC2
tool 3 [%sc%:||tool 3 %sc%:
:FD4
set nm=Workroom SX-68Kアプリケーションディスク||set rt=R28||set es=FD3||goto INS
:R28
set dv=%sc%||set rt=R29||set es=FD4||goto CHK
:R29
set nm=ランタイム||set rt=R30||goto MSGM
:R30
copy %sc%:\INCLUDE %dt%:\INCLUDE > NUL
copy %sc%:\LIB %dt%:\LIB > NUL
copy \ETC\COMMAND.X %dt%:\ > NUL
:FD5
tool 3 [%dt%:||tool 3 %dt%:
:FD51
set m1=ランタイムディスクを作成しました
set m2=空きディスクをドライブ%dt%: に入れてください
set rt=J25||set es=FD3||set rt2=RDY1||goto MSG2
:J24
set nm=Workroom SX-68Kアプリケーションディスク||set rt=J25||set es=FD51||goto INS
:J25
set dv=%sc%||set rt=R31||set es=J24||goto CHK
:R31
set nm=ツール||set vl=Tool||set rt=R32||set es=FD5||goto CPY
:R32
for %%F in (INCLUDE LIB ETC) do del /Y %dt%:\%%F > NUL||rd %dt%:\%%F > NUL
del %dt%:\INST.BAT > NUL
copyall \BIN %dt%: > NUL
tool 3 [%sc%:||tool 3 %sc%:
:FD6
set nm=SX-WINDOW アプリケーションディスク||if %vr% == 3 set nm=SX-WINDOW アプリケーションディスク1
set rt=R33||set es=FD51||goto INS
:R33
set vl=SX_Application||if %vr% == 3 set vl=SX-Application#1
set dv=%sc%||set rt=R34||set es=FD6||goto CHK1
:R34
set nm=ツール||set rt=R35||goto MSGM
:R35
md %dt%:\アクセサリ > NUL
if %vr% == 3 goto J26
copy %sc%:\エディタ.* %dt%:\アクセサリ > NUL
copy %sc%:\フォント選択.X %dt%:\アクセサリ > NUL
goto J27
:J26
for %%F in (シャーペン.X シャーペン.ARC エディタ.ENV) do copy %sc%:\%%F %dt%:\アクセサリ > NUL
tool 10 %dt%: 15||if exitcode 1 goto J27
copy %sc%:\シャーペン.HLP %dt%:\アクセサリ > NUL
:J27
set m1=ツールディスクを作成しました
set rt2=R36||goto MSG1
:R36
tool 3 [%dt%:||tool 3 %dt%:
echo 3Hリターンキーを押してください63H
┃
tool 6 3H(続行)
溿
(前に戻る)63H
┃
:L17
tool 2
if exitcode 27 goto FD5
if not exitcode 13 goto L17
set m1=コピーは終了しました.ドライブ0に起動ディスク、ドライブ1に
set m2=ツールディスクを入れてください.Y を押すとリセットします
set rt2=R37||goto MSG2
:R37
tool 3 [%sc%:||tool 3 %sc%:
echo 3Hリセットします.よろしいですか [Y/N]63H
┃
tool 6 3H(リセット)
(終了)63H
┃
:L18
tool 6 40H||tool 5 1
tool 8||tool 5 0
if %dir% == Y tool 7
if %dir% == N goto END
goto L18
rem ハードディスクへのインストール
:HDD
set r3=42m||for %%N in (1 2 4 5) do set r%%N=m
:WR1
echo 3HSX開発キットを組込むハードディスクのドライブを指定してください
┃
set rt=R38||set es=DVC||goto MN2
:R38
set rt=R39||set es=WR1||goto HDC
:R39
tool 10 %dr%: 8192||if not exitcode 1 goto WR2
set m1=
ハードディスクの空き容量が足りません
set m2=
8Mバイト以上確保してください
set rt2=R40||goto MSG2
:R40
echo 3H終了してもよろしいですか [Y/N]63H
┃
tool 6 3H(終了)
(続行)
溿
(前に戻る)63H
┃
:L19
tool 6 34H||tool 5 1
tool 8||if exitcode 27 tool 5 0||goto WR1
tool 5 0
if %dir% == Y goto END
if not %dir% == N goto L19
set m1=続行の場合、途中でハードディスクがいっぱいになりコピーを中止
set m2=することがあります
set es=WR2||goto ESC2
:WR2
echo 3Hドライブ%dr%: にSX開発キット用のディレクトリを作成します63H
┃
set nm=開発キット||set rt=R41||set es=WR1||goto DRC
:R41
set dw=%dr%||set dw2=%dr2%
if %gets% == \ set wr=\||set wr2=\||goto SHL
set wr=\%gets%||set wr2=\%gets%\
tool 4 %dw%:%wr%||if exitcode 0 goto SHL
set m1=ドライブ%dw%: には同名のディレクトリがあります
set rt2=R42||goto MSG1
:R42
echo 3H上書きしますか? [Y/N]63H
┃
:L20
tool 6 26H||tool 5 1
tool 8||if exitcode 27 tool 5 0||goto WR1
tool 5 0
if %dir% == N goto WR2
if not %dir% == Y goto L20
:SHL
set r3=42m||for %%N in (1 2 4 5) do set r%%N=m
:SHL1
set m1=SX開発キットを利用するときは、ここで指定したドライブ名から
set m2=起動してください
set rt2=R43||goto MSG2
:R43
echo 3HSX-WINDOWが組込まれているハードディスクのドライブを指定してください
┃
set n=4||set rt=R44||set es=J30||goto MN3
:R44
set rt=R45||set es=SHL1||goto HDC
:R45
echo 3Hドライブ%dr%: に存在するSXシェル"SXWIN.X" のディレクトリをチェックします
┃
set nm=SHELL||set rt=R46||set es=SHL1||goto DRC
:R46
set ds=%dr%||set ds2=%dr2%
if %gets% == \ set sh=\||set sh2=\||goto J28
set sh=\%gets%||set sh2=\%gets%\
tool 4 %ds%:%sh%||if exitcode 0 set m1=ドライブ%ds%: には指定のディレクトリがありません||goto J29
:J28
if exist %ds%:%sh2%SXWIN.X goto J31
set m1=ディレクトリ"%ds%:%sh%" にはSXシェル"SXWIN.X" が存在しません
:J29
set nm=SX-WINDOW||set x0=49||set rt=SHL1||set rt2=INST||goto MSG1
:J30
if %dw% == A goto HDD
for %%N in (1 2 3 4 5) do set r%%N=m
if %dw% == B set r2=42m||goto WR1
if %dw% == C set r3=42m||goto WR1
if %dw% == D set r4=42m||goto WR1
set r5=42m||goto WR1
:J31
if not exist %ds%:%sh2%SXWDB.X copy %ds%:%sh2%SXWIN.X %ds%:%sh2%SXWDB.X > NUL
:XC
set r3=42m||for %%N in (1 2 4 5) do set r%%N=m
:XC1
echo 3HCコンパイラが組込まれているハードディスクのドライブを指定してください
┃
set rt=R47||set es=J35||goto MN4
:R47
set rt=R48||set es=XC1||goto HDC
:R48
echo 3Hドライブ%dr%: に存在するCコンパイラのディレクトリをチェックします
┃
set nm=XC||set rt=R49||set es=XC1||goto DRC
:R49
set dx=%dr%||set dx2=%dr2%
if %gets% == \ set xc=\||set xc2=\||goto J32
set xc=\%gets%||set xc2=\%gets%\
tool 4 %dx%:%xc%||if exitcode 0 set m1=ドライブ%dx%: には指定のディレクトリがありません||goto J34
:J32
tool 4 %dx%:%xc2%INCLUDE||if exitcode 0 set m1=INCLUDE||goto J33
tool 4 %dx%:%xc2%LIB||if exitcode 1 set rt2=SMPL||goto CLR
set m1=LIB
:J33
set m1=ディレクトリ"%dx%:%xc%" にはサブディレクトリ"%m1%" が存在しません
:J34
set nm=Cコンパイラ||set x0=52||set rt=XC1||set rt2=INST||goto MSG1
:J35
if %ds% == A goto SHL
for %%N in (1 2 3 4 5) do set r%%N=m
if %ds% == B set r2=42m||goto SHL1
if %ds% == C set r3=42m||goto SHL1
if %ds% == D set r4=42m||goto SHL1
set r5=42m||goto SHL1
:SMPL
echo 3Hサンプルプログラムをコピーしますか [Y/N]63H
┃
tool 6 3H(する)
(しない)
溿
(前に戻る)63H
┃
:L21
tool 6 44H||tool 5 1
tool 8||if exitcode 27 tool 5 0||goto XC1
tool 5 0
if %dir% == Y set sm=CP||goto J36
if not %dir% == N goto L21
set sm=PS
:J36
set y0=11||set y1=12||set y2=13||if %sm% == PS set y0=14||set y1=15||set y2=16
echo %y0%;20H
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
echo %y1%;20H┃SX開発キット ディレクトリ
┃
%dw%:%wr%%y1%;74H
┃
echo %y2%;20H┃開発ツール サブディレクトリ
┃
%dw%:%wr2%開発ツール%y2%;74H
┃
if %sm% == PS goto J37
echo 20H┃サンプル基礎編 サブディレクトリ
┃
%dw%:%wr2%サンプル基礎編74H
┃
echo 20H┃サンプル応用編 サブディレクトリ
┃
%dw%:%wr2%サンプル応用編74H
┃
echo 20H┃サンプル実用編 サブディレクトリ
┃
%dw%:%wr2%サンプル実用編74H
┃
:J37
echo 20H┃インクルードサブディレクトリ
┃
%dx%:%xc2%INCLUDE74H
┃
echo 20H┃ライブラリ サブディレクトリ
┃
%dx%:%xc2%LIB74H
┃
echo 20H┗━━━━━━━━━━━┻━━━━━━━━━━━━━━┛
for %%N in (0 1 2) do set y%%N=
set rt2=HD1||goto CLR
:HD1
set m1=以上のディレクトリに対してコピーを始めます
set rt=R50||set es=SMPL||goto RDY
:R50
set dv=B||set rt=R51||set es=HD1||goto CHK
:R51
set rt=R52||goto MSGC
:R52
if not %wr% == \ tool 4 %dw%:%wr%||if exitcode 0 md %dw%:%wr% > NUL
copyall /T B:\開発ツール %dw%:%wr% > NUL
if not %xc% == \ tool 4 %dx%:%xc%||if exitcode 0 md %dx%:%xc% > NUL
copyall /T B:\INCLUDE %dx%:%xc% > NUL
copyall /T B:\LIB %dx%:%xc% > NUL
if %sm% == PS goto J38
tool 3 [A:||tool 3 A:||tool 3 [B:||tool 3 B:
:HD2
if %sm% == PS goto HD1
set m1=次のディスクをコピーします.ドライブ0にWorkroom SX-68K
set m2=プログラムディスク1、ドライブ1にプログラムディスク2を入れてください
set rt=R53||set es=HD1||set rt2=RDY1||goto MSG2
:R53
set dv=A||set nm=Workroom SX-68Kプログラムディスク1||set vl=Workroom_Program1
set rt=R54||set es=HD2||goto CHK1
:R54
set dv=B||set nm=Workroom SX-68Kプログラムディスク2||set vl=Workroom_Program2
set rt=R55||set es=HD2||goto CHK1
:R55
set rt=R56||goto MSGC
:R56
copyall /T A:\サンプル基礎編 %dw%:%wr% > NUL
copyall /T B:\サンプル応用編 %dw%:%wr% > NUL
copyall /T B:\サンプル実用編 %dw%:%wr% > NUL
:J38
tool 3 [A:||tool 3 A:||tool 3 [B:||tool 3 B:
:HD3
set m1=次にシステムのバージョンをチェックします.ドライブ0にSX-WINDOW
set m2=システムディスク、ドライブ1にHuman68k システムディスクを入れてください
set rt=R57||set es=HD2||set rt2=RDY1||goto MSG2
:R57
set dv=A||set nm=SX-WINDOWシステムディスク||set es=HD3
tool 11 %dv%:||if exitcode 1 goto ERR1
tool 12 %dv%: SX・Window_SYSTEM||if not exitcode 1 set vr=2||goto J39
tool 12 %dv%: SX・Window-System||if exitcode 1 goto ERR2
set vr=3
:J39
set dv=B||set nm=Human68k ver%vr%システムディスク||set vl=Human68k_Ver%vr%
set rt=R58||set es=HD3||goto CHK1
:R58
set rt=R59||goto MSGC
:R59
copyall /T B:\COMMAND.X \ETC > NUL
copyall /T B:\SYS\HISTORY.X \SYS > NUL
tool 3 [A:||tool 3 [B:||set dr=%ds%
:RWR
set m1=SXデバッガを起動するため、SX-WINDOWが自動起動しないように
set m2=ドライブ%dr%: の"CONFIG.SYS" を書き替えます
set rt2=R60||goto MSG2
:R60
echo 3Hよろしいですか [Y/N]63H
┃
tool 6 3H(続行)
(ドライブ名変更・中止)
溿
(前に戻る)63H
┃
:L22
tool 6 24H||tool 5 1
tool 8||if exitcode 27 tool 5 0||goto HD3
tool 5 0
if %dir% == Y goto J40
if not %dir% == N goto L22
echo 3Hドライブ名のみ変更できます (A-Z):63H
┃
tool 6 3H 溿を押すと、"CONFIG.SYS" を書き替えません63H
┃
tool 6 37H||tool 5 1
tool 8||if exitcode 27 tool 5 0||set rt=J41||goto SFT
tool 5 0||set dr=%dir%||goto RWR
:J40
copy %dr%:\CONFIG.SYS %dr%:\CONFIG.BAK > NUL
tool 13 %dr%:\CONFIG.SYS,.SYS,.SYS ||copy tmp.$$$ \CONFIG.SYS > NUL
tool 13 \CONFIG.SYS,FILES = 15,FILES = 20||copy tmp.$$$ \CONFIG.SYS > NUL
tool 13 \CONFIG.SYS,TITLE =,#TITLE =||copy tmp.$$$ \CONFIG.SYS > NUL
tool 13 \CONFIG.SYS,\SYS\OPMDRV.X,\SYS\OPMDRV3.X #180 /P64 /OPM||copy tmp.$$$ \CONFIG.SYS > NUL
tool 13 \CONFIG.SYS,PROGRAM =,#PROGRAM =||copy tmp.$$$ \CONFIG.SYS > NUL
tool 13 \CONFIG.SYS,SHELL =,#SHELL =||copy tmp.$$$ \CONFIG.SYS > NUL
tool 13 \CONFIG.SYS,.SYS ,.SYS||copy tmp.$$$ %dr%:\CONFIG.SYS > NUL
del tmp.$$$ > NUL
copyall /T \ETC\COMMAND.X %dr%:\ > NUL
copyall /T \SYS\HISTORY.X %dr%:\SYS > NUL
copyall /T OPMDRV3.X %dr%:\SYS > NUL
set rt=J41||goto SFT
:J41
set db=%dr%||set db2=%dr2%
:ENV
set pt=%db2%:\;%db2%:\SYS;
if not %db% == %ds% set pt=%pt%%ds2%:\;
set pt=%pt%%ds2%:%sh%;%dw2%:%wr2%開発ツール;
if not %db% == %dx% if not %dx% == %ds% set pt2=%dx2%:\;%dx2%:\BIN;%dx2%:%xc2%CC;%dx2%:%xc2%BIN;||goto J42
set pt2=%dx2%:\BIN;%dx2%:%xc2%CC;%dx2%:%xc2%BIN;
:J42
echo H
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃SX開発キットの使用環境を設定するバッチファイル(SX.BAT, SDB.BAT)を71H
┃
echo ┃ドライブ%db%: のルートディレクトリ(%db%:\)に作成します71H
┃
echo ┃ path %pt%71H
┃
echo ┃ %pt2%71H
┃
echo ┃ set include=%dx2%:%xc2%INCLUDE;71H
┃
echo ┃ set lib=%dx2%:%xc2%LIB;71H
┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo 3HSX開発キット使用時の環境は、以上でよろしいですか [Y/N]63H
┃
tool 6 3H(決定)
(中止)
溿
(前に戻る)63H
┃
set pt=%pt%%pt2%||set pt2=
:L23
tool 6 60H||tool 5 1
tool 8||if exitcode 27 tool 5 0||set pt=||goto RWR
tool 5 0
if %dir% == N goto J43
if not %dir% == Y goto L23
if %vr% == 3 tool 13 \ETC\HD.BAT,set SM_ED=,set SM_ED=シャーペン.X -Gエディタ.ENV||copy tmp.$$$ \ETC\HD.BAT > NUL
if exist %db%:\SX.BAT copy %db%:\SX.BAT %db%:\SX.BAK > NUL
if exist %db%:\SDB.BAT copy %db%:\SDB.BAT %db%:\SDB.BAK > NUL
tool 6 H||prompt $_
command \ETC\HD.BAT %pt% %dx2%:%xc2% %dw2%: %wr2% > %db%:\SX.BAT||prompt
copy %db%:\SX.BAT %db%:\SDB.BAT > NUL
tool 13 \ETC\SX.BAT,REM FSX.X,FSX.X||copy tmp.$$$ \ETC\SX.BAT > NUL
tool 13 \ETC\SDB.BAT,REM FSX.X,FSX.X||copy tmp.$$$ \ETC\SDB.BAT > NUL
tool 13 \ETC\SX.BAT,FSX.X,%ds2%:\SYS\FSX.X||type tmp.$$$ >> %db%:\SX.BAT
tool 13 \ETC\SDB.BAT,FSX.X,%ds2%:\SYS\FSX.X||type tmp.$$$ >> %db%:\SDB.BAT
del tmp.$$$ > NUL
echo H||echo
echo
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃バッチファイル(SX.BAT, SDB.BAT)を%db%:\ に作成しました63H
┃
echo ┃ドライブ%db%: からシステム起動後、"SX" と入力するとSX-WINDOWが、63H
┃
echo ┃"SDB" と入力するとSXデバッガがそれぞれ起動します63H
┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛||echo
:J43
echo 3Hコピーは終了しました.リセットしますか [Y/N]63H
┃
tool 6 3H(リセット)
(終了)
溿
(前に戻る)63H
┃
:L24
tool 6 48H||tool 5 1
tool 8||if exitcode 27 tool 5 0||goto ENV
tool 5 0||set pt=
if %dir% == N goto END
if not %dir% == Y goto L24
tool 3 [A:||tool 3 A:||tool 3 [B:||tool 3 B:||tool 7
rem インストールの終了
:END
set rt=R61||goto INIT
:R61
set dir=||set gets=||set rt=||for %%N in (1 2 3 4 5) do set r%%N=
tool 3 [A:||tool 3 [B:||cls||tool 5 1